package com.itheima.controller;

import com.itheima.entity.Result;
import com.itheima.utils.serverInfo.ServerInfo;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

/**
 * @Author: Felix(李鑫)
 * @Date: 2020/9/1 15:36
 * @Description: 系统设置相关接口
 */
@RestController
@RequestMapping("/monitor")
public class ServerMonitorController {

    /**
     * 获取系统的配置
     * @return
     */
    @RequestMapping("/getServerInfo")
    public Result getServerInfo(){
        ServerInfo server = new ServerInfo();
        server.copyTo();
        return new Result("success",server);
    }
}
